let $ = layui.jquery;
let jQuery = $;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current = 1;
let raw = '';//排序
let InitData = {};
let user_token = localStorage.getItem('user_token') || '';

let table_config = {
    "header": {
        "button": [],
        "tab": [],
        "search": {
            "datetime": [],
            "like": "应用名称"
        },
        "sum": []
    },
    "left": {
        "status": 2,
    },
    "source": "log_type",
    "source_url": shopUrl+'/api/addon/source/',
    "table": {
        "button": [],
        "style": 5,
        "style_md":6,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "",
        "page": true,
        "elem": "datatable",
        "height": "full-85",
        "update": "",
        'token':localStorage.getItem('user_token') || 'no',
        "url": shopUrl+"/api/addon/",
        "cols": [
            {
                "field": "name",
                "title": "名称",
                "width": "240",
                "minWidth": "240"
            },
            {
                "field": "type",
                "title": "应用归属",
                "search": "select",
                "options": "addon_type",
                "width": "160",
                "minWidth": "160"
            },
            {
                "field": "cat",
                "title": "应用类别",
                "search": "select",
                "options": "addon_cat",
                "width": "160",
                "minWidth": "160"
            },
            {
                "field": "author",
                "title": "作者",
                "width": "160",
                "minWidth": "160"
            },
            {
                "field": "intro",
                "title": "介绍"
            },
            {
                "field": "sale_price",
                "title": "价格",
                "width": "120",
                "minWidth": "120"
            },
            {
                "field": "down",
                "title": "下载次数",
                "width": "120",
                "minWidth": "120"
            },
            {
                "field": "version",
                "title": "版本",
                "width": "120",
                "minWidth": "120"
            },
            {
                "field": "update_time",
                "title": "更新时间",
                "width": "160",
                "minWidth": "160"
            },
            {
                "field": "",
                "title": "操作",
                "fixed":"right",
                "templet":"#tplButton",
                "width": "160",
                "minWidth": "160"
            },
        ]
    }
};
let form_config = {
    detail: '/admin/oldlog/detail/',
    add: '/admin/oldlog/add/',
    edit: '/admin/oldlog/edit/',
    data: {
        "module": "",
        "controller": "",
        "action": "",
        "method": "",
        "url": "",
        "post_data": "",
        "get_data": "",
        "headers": "",
        "ip": "",
        "content": "",
        "agent": ""
    },
    label_width: '',
    form_label: 'form_top',
    onclick: [],
};
